#include "../ui.h"
#include <stdio.h>

void ui_set_up_init(void)
{
    printf("开机动画加载...\n");
    lv_obj_t * img;

    img = lv_gif_create(lv_screen_active());
    lv_gif_set_src(img, &ui_img_set_up_gif);
    lv_obj_align(img, LV_ALIGN_CENTER, 0, 0);

    img = lv_gif_create(lv_screen_active());
    /* Assuming a File system is attached to letter 'A'
     * E.g. set LV_USE_FS_STDIO 'A' in lv_conf.h */
    lv_gif_set_src(img, "./set_up.gif");
    lv_obj_align(img, LV_ALIGN_CENTER, 0, 0);

    // lv_obj_t *main_draw=lv_obj_create(NULL);
    // lv_obj_t *gif=lv_gif_create(lv_screen_active());
    // lv_gif_set_src(gif,"A:set_up.gif");
    // lv_obj_set_align(gif,LV_ALIGN_CENTER);
    printf("开机动画加载完成!\n");
}


